package com.jike.shop.cloud.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.jike.shop.cloud.enums.OrderPayMethodEnum;
import com.jike.shop.cloud.enums.OrderStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 父订单主表
 * </p>
 *
 * @author liconglong
 * @since 2022-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父订单号
     */
    private Long parentOrderId;

    /**
     * 订单号
     */
    private Long orderId;

    /**
     * 下单人ID
     */
    private Integer customerId;

    /**
     * 收货人姓名
     */
    private String shippingUser;

    /**
     * 电话
     */
    private Long phone;

    /**
     * 省
     */
    private Integer province;

    /**
     * 市
     */
    private Integer city;

    /**
     * 区
     */
    private Integer district;

    /**
     * 地址
     */
    private String address;

    /**
     * 下单时间
     */
    private LocalDateTime createTime;

    /**
     * 支付方式
     */
    private OrderPayMethodEnum paymentMethod;

    /**
     * 配送方式
     */
    private Integer deliveryMethod;

    /**
     * 期望配送时间
     */
    private Long expectDeliveryTime;

    /**
     * 商品总额
     */
    private BigDecimal orderMoney;

    /**
     * 优惠金额
     */
    private BigDecimal districtMoney;

    /**
     * 运费金额
     */
    private BigDecimal shippingMoney;

    /**
     * 支付金额
     */
    private BigDecimal paymentMoney;

    /**
     * 订单状态
     */
    private OrderStatusEnum orderStatus;

    /**
     * 最后修改时间
     */
    private LocalDateTime modifiedTime;


}
